

CROSS_COMPILE =  arm-hisiv500-linux-
CC	=	$(CROSS_COMPILE)gcc
AR	=	$(CROSS_COMPILE)ar
LD	=	$(CROSS_COMPILE)ld
RM	=	rm	

TARGET = keyled-daemon 

DIR = $(PWD)
.PHONY:  $(TARGET)	clean


CFLAGS = -g -Wall
CFLAGS += -I ../../lib/libleds/
CFLAGS += -L ../../lib/libleds/ -lleds

LDFLAGS = 

OBJS = keyled-daemon.o keys.o public.o thread.o

LIBS = -lpthread -lm -ldl -lrt 

.PHONY: all  install  clean

    	
(TARGET):$(OBJS)
	$(CC) -o $(TARGET) $^ $(LDFLAGS) $(LIBS) $(CFLAGS)

clean:
	$(RM) -rf $(TARGET) *.o


